package net.qhzw.vip.qiyu.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qhzw.vip.qiyu.entity.AttachFile;
import net.qhzw.vip.qiyu.mapper.AttachFileMapper;
import net.qhzw.vip.qiyu.service.AttachFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class AttachFileServiceImpl extends ServiceImpl<AttachFileMapper, AttachFile> implements AttachFileService {

    @Autowired
    private AttachFileMapper attachFileMapper;

//    @Autowired
//    private UploadManager uploadManager;
//
//    @Autowired
//    private BucketManager bucketManager;
//
//    @Autowired
//    private Qiniu qiniu;
//
//    @Autowired
//    private Auth auth;
//
//    public final static String NORM_MONTH_PATTERN = "yyyy/MM/";

    @Override
    @Transactional(rollbackFor = Exception.class)
    public String uploadFile(byte[] bytes, String originalName) {

        return "ss";
    }

    @Override
    public void deleteFile(String fileName) {

    }


}
